package com.zjh.service.user;

import com.zjh.dao.user.UserMapper;
import com.zjh.pojo.User;

import java.util.List;
import java.util.Map;

public class UserServiceImpl implements UserService{

    private UserMapper userMapper;

    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Override
    public User getLoginUser(String userCode) {
        return userMapper.getLoginUser(userCode);
    }

    @Override
    public int updatePwd(Map<String,Object> map) {
        return userMapper.updatePwd(map);
    }

    @Override
    public int getUserCount(Map<String,Object> map) {
        return userMapper.getUserCount(map);
    }

    @Override
    public List<User> getUserList(Map<String,Object> map) {
        return userMapper.getUserList(map);
    }

    @Override
    public int add(Map<String,Object> map) {
        return userMapper.add(map);
    }

    @Override
    public int deleteUserById(Integer id) {
        return userMapper.deleteUserById(id);
    }

    @Override
    public User getUserById(Integer id) {
        return userMapper.getUserById(id);
    }

    @Override
    public int modify(Map<String,Object> map) {
        return userMapper.modify(map);
    }
}
